<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

    <table>
        <tr>
            <th><form:label path="login"><fmt:message key="user.login"/></form:label></th>
            <td><form:input path="login"/></td>
            <td><form:errors path="login" cssClass="error"/></td>
        </tr>
        
        <tr>
            <th><form:label path="contact"><fmt:message key="employee.contact"/></form:label></th>
            <td>
            <form:select path="contact.id">
             <c:forEach items="${contacts}" var="c">
                    <form:option value="${c.id}" label="${c.surname} ${c.name}"/>
                </c:forEach>
            </form:select>
            </td>
            <td><form:errors path="contact" cssClass="error"/></td>
        </tr>
        
    </table>

